{% extends "layout/base.html" %}
{% block body %}
<div class="container-fluid">
    <div class="row">
        <div class="col-md-12">
            <div class="card ">
                <div class="card-header ">
                    <h4 class="card-title">测试报告列表</h4>
                    <hr>
                </div>
                <div class="card-body table-full-width table-responsive">
                    {% if delete_message %}
                    <div class="col-md-12">
                        <div class="alert alert-info">
                            <button type="button" aria-hidden="true" class="close" data-dismiss="alert">
                                <i class="nc-icon nc-simple-remove"></i>
                            </button>
                            <span>{{ delete_message }}</span>
                        </div>
                    </div>
                    {% endif %}
                    <table class="table table-hover table-striped">
                        <thead>
                        <th>报告名字</th>
                        <th>操作</th>
                        </thead>
                        <tbody>
                        {% for item in report_list %}
                        <tr>
                            <td>{{ item }}</td>
                            <td>
                                <a target="_blank" href="/report/info?report_name={{ item }}">查看详情</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
                                <a href="/report/delete?report_name={{ item }}">删除</a>
                            </td>
                        </tr>
                        {% endfor %}
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}


